Alibabacloud.com offers a wide variety of articles about rsync multiple directories, easily find your rsync multiple directories information here online.
Common scenarios: I want to synchronize some php files under/myweb, but I don't want to copy some log files in/myweb/log/because these files are too large, backup is meaningless. Now, if you want to avoid adding-exclude directly to a path, such as-exclude "./log"-exclude './log/file'Note: the directory path is relative to the folder you are backing up.Exclude specified directories or files during
In this article we introduce a shell script that uses the rsync command to back up files/directories on your local Linux machine to a remote Linux server. Using this script will implement the backup interactively, and you will need to provide the host name/IP address and folder location of the remote backup server. We use a separate list file in which you need to list the files/
Very common situation: I want to sync some php files under/myweb, but do not want to copy some of the/myweb/log/inside the log files, because these files are too large, backup is meaningless. Now if you want to avoid a path directly add-exclude can be like-exclude "./log" –exclude './log/file 'Note: The directory path is relative to the folder backing up.Exclude specified directories or files during rsync b
In this article we introduce a shell script that uses the rsync command to back up files/directories on your local Linux machine to a remote Linux server. Using this script will implement the backup interactively, and you will need to provide the host name/IP address and folder location of the remote backup server. We use a separate list file in which you need to list the files/
Original: http://dason.blog.51cto.com/658897/505312
Apache Virtual Host configuration (multiple domains access multiple directories)
To facilitate the management of the virtual host, I decided to use one method, that is, to modify the httpd-vhosts.conf file.
The first step is to make the extension file httpd-vhosts.conf effective:1. Open apache/conf/httpd.conf F
How multiple MySQL databases are assigned to multiple different file directories
How multiple MySQL databases are assigned to multiple different file directories
I installed the Phpnow environment
The default database is placed i
Apache Virtual Host configuration (multiple domain names to access multiple directories) in order to facilitate the management of the virtual host, I decided to use one method, that is, modify the httpd-vhosts.conf file. The first step is to make the extension file httpd-vhosts.conf effective:1. Open apache/conf/httpd.conf File2. Find # Include Conf/extra/httpd-v
DescriptionYou can only exclude upload files/directories using Rsync-av--exclude=upload/home/mysql/backup/home/mysql/backup2/. However, if you want to exclude multiple files/directories, you need to create a new exclude.list and then Rsync-av--exclude-from= "exclude.list" to
-- Progress display. backup process-Z, -- compress compresses the backup files during transmission -- exclude = pattern specifies to exclude the file mode that does not need to be transmitted -- include = pattern specifies the file mode to be transmitted without exclusion -- exclude- from = file exclude files in the specified mode -- include-from = file do not exclude files in the specified mode of file -- version print version information -- Address bound to a specific address -- Config = File
Sersync: http://code.google.com/p/sersync/
When used, the master server first configures rsync
vi /etc/rsyncd.conf
uid=rootgid=rootmax connections=36000use chroot=nolog file=/var/log/rsyncd.logpid file=/var/run/rsyncd.pidlock file=/var/run/rsyncd.lock【tongbu】path=/opt/tongbucomment = xoyo video filesignore errors = yesread only = nohosts allow = 192.168.8.40/26 192.168.138.94/24hosts deny = *
The above configuration is directly copied on sersync Goo
logfile=/var/log/rsyncd.log[login_nginx]path=/etc/ Nginx/comment=loginnginxignoreerrorsreadonly =nowriteonly=nohostsallow=192.168.1.0/ 24hostsdeny=*list=false[game_center] path=/var/www/htmlcomment=game_centercodeignore errorsreadonly=nowriteonly=no Hostsallow=nbsP;192.168.1.0/24hostsdeny=*list=false Here the UID and GID are particularly important, indicating that the RSYNCD daemon should have permission to the specified directory when the file is transferred. If the permissions are not correct
There are several ways to achieve1) using rsync--excludeCd/usrRSYNC-AVP--exclude=dirc/tmp/home/xx/Note dirc/behind/must, named is the directory, if not add the Dirc file will also be excludedIf you want to exclude multiple directories or files, useRSYNC-AVP--exclude-from=/usr/exclude.list Php/bak[Email protected] php]# RSYNC
Rsync+inotifyEnterprise Web site synchronization methods have multiple, can be used to mount the shared hard disk, but can also be used Rsync+inotify-tool way.Rsync: Responsible for pushing data to the server.INotify: Responsible for monitoring code or file changes in the client, triggering the push.Environment Description:centos-6.5A Server-side (192.168.10.2)
Take a look at the comparison chart, the image on the left is a copy of the common Rsync directory, the right figure is the use of the parallel tool and launched multiple rsynccentos6.5 Installation Parallel #!/bin/bash# Install parallel on CentOS 6 .# assumes is root. Prefix w /sudo if not.cd /etc/yum . repos.d/wget http:// download.opensuse.org/repositories/home:tange/centos_centos-5/home:tange.rep
Play YY more any file may be read due to improper configuration of a service (multiple rsync servers can be controlled)
Still fastcgi problem, 222.134.66.98 ip Address
[root@localhost fastcgi]$ /usr/local/php/bin/php fcgiget.php 222.134.66.98:9000/etc/hostsX-Powered-By: PHP/5.2.6-3ubuntu4.6Content-type: text/html127.0.0.1localhost222.134.66.98ubuntu# The following lines are desirable for IPv6 capable hosts
Synchronization commands"compile""session_cache""web" /cygdrive/c/www/test/trunk/ username@IP:/home/test/This is to say that the way to exclude multiple files/folders when synchronizing is:--exclude "文件夹名字(1.唯一的时候,可以直接用文件/文件夹名 2.用绝对路径)"以下示例,排除3个文件夹:--exclude .svn --exclude "compile" --exclude "session_cache"Rsync Common parameters:--delete 删除目标文件比源文件多余的文件--exclude 排除文件(文件不会被同步) Copyright NOTICE: This articl
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.